package cn.larry.demo.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.larry.demo.domain.Person;


@RestController
@RequestMapping("/person")
public class PersonController {

	// http://localhost:8080/person/demo?name=www&age=18
	// 奇怪，为什么没有调用PropertyEditor？？？
	@RequestMapping("/demo")
	public Person a(Person person) {
		return person;
	}
}
